Part Number Hot Search : 
11G2H 20024 B41858 EZAEG3A AM2305A ST62P00C 475M5 BA6892FP
Product Description
Full Text Search
 

To Download X5114LI Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 X5114
System Controller
FEATURES * * * * * Simplifies Backplane Communications Monitor Fault and "Hot Docking" Conditions Ten Level Selectable Input Threshold Two Fully Redundant SPI Serial I/O Ports Programmable Output or Input Port Pins --16 General I/O pins --8 bit Port with 4 Handshake Modes * Single Read Input Mode * Multiple Read Input Mode * Output Mode * Bidirectional Mode --Port Tristate Control Programmable Interrupt and Mask Options 8-bit Direct Address Decoder allows Cascaded 255+ devices on one SPI bus 4K bits of EEPROM with 32 byte page write Default Output Data on Port at Power-up High Reliability EEPROM --Endurance - 105 Data Changes --Data Retention - 100 years 44-Pin PLCC, 48-Lead TQFP DESCRIPTION The X5114 is a single-chip system controller that is used in applications such as multiprocessing, telecommunications, data communications, cable systems, set top boxes, etc. The chip can implement features such as backplane communication, hot docking, cable diagnostics, etc. The X5114 makes extensive use of nonvolatile memory with 4,096 bits of general purpose EEPROM, nonvolatile configuration registers, and nonvolatile programming of the port pins. The ports can be set up as sixteen general I/Os with pin selectable data direction (including eight inputs with nonvolatile threshold selections) or as an eight bit port with handshake. The chip is controlled via two redundant 2MHz SPI serial ports. A sophisticated interrupt controller provides notification of a failed SPI command, changing conditions on an input, handshake status, and I/O errors. Interrupts are maskable. On-chip EEPROM provides nonvolatile storage of system status, manufacturing information, board ID or other parameters.
* * * * *
*
FUNCTIONAL DIAGRAM Port A Each Pin
CSO CSC CSa SIa SOa SCKa CSb SIb SOb SCKb A0 . . . . A7 Desired Value Output
SPI_A
Port A Latch
Interrupt Logic
Input
Threshold Adjust
Output Tristate
PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0
SPI_B
Serial Engine/ Data Flow Controller
Port Config Regs 256 X 8 Desired Value 256 X 8 EEPROM Port B Latch
Interrupt Control A/B
IRQA IRQB PCE
Address Select Decode
Interrupt Logic
Handshake Logic (PB7-PB4)
Output Tristate
Output
Port A Handshake
Input
PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0
= EEPROM
(c)Xicor, Inc. 1994 - 1997 Patents Pending 7054-1.2 10/29/00 T13/C8/D24 SH
Port B Each Pin
1
Characteristics subject to change without notice
X5114
PIN CONFIGURATION PIN NAMES Symbol
SCKa, SCKb SIa, SIb, SOa, SOb
5 4 3 2 1 44 43 42 41 CSC CSa SCKa SIa SOa IRQA VSS IRQB SOb SIb SCKb 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 PCE PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 VCC NC
44 Lead PLCC
CSO VCC A7 A6 A5 A4 A3 A2 A1 A0 NC
Function
SPI A, B Serial Clock SPI A, B, Serial Data I/O SPI A, B select Device Address Interrupt A, B Outputs Port Chip Enable Port A pins Port B pins Chip Select Output Chip Select Cascade Output System Supply, Ground No Connection
CSa, CSb A7-A0 IRQA, IRQB PCE PA7-PA0 PB7-PB0 CSO CSC VCC, VSS NC
CSC NC CSO NC VCC A7 A6 A5 A4 A3 A2 A1
NC CSb PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 VSS
19 20 21 22 23 24 25 26 27
48 Lead TQFP
PIN DESCRIPTIONS
A0 NC PCE PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 VCC
14 15 16 17 18 19 20 21 22 23
CSa SCKa SIa SOa IRQA NC VSS NC IRQB SOb SIb SCKb
1 2 3 4 5 6 7 8 9 10 11 12
47 46 45 44 43 42 41 40 39 38
36 35 34 33 32 31 30 29 28 27 26 25
CSa /CSb (SPI A/B Chip Select) These are schmitt trigger input pins used by the host system to select the X5114 SPI port. A HIGH to LOW (falling) transition on CSa or CSb starts the X5114 serial access. Both of these pins at logic "1" deselects the device and places the SOa and SOb pins in a high impedance state. In the event of a stuck LOW on either of these pins, a HIGH to LOW transition on the other chip select will override the inoperative serial port. SCKa/SCKb (SPI A/B Serial Clock) These are schmitt trigger input pins used by the host system to supply the SPI serial clock. Only clock mode 3 is supported by X5114. When inactive, the SPI serial clock is to be driven to a logic HIGH level. SIa/SIb (SPI A/B Serial Input) These are schmitt trigger, serial data inputs. They receive device address, opcode, and data from the host system at the rising edge of the serial clock (i.e. SCKa or SCKb). SOa/SOb (SPI A/B Serial Output) These are push-pull serial data outputs. They shift out data after each falling edge of the serial clock and are stable on the rising edge of the serial clock (i.e. SCKa or SCKb). When the device is not outputting data or is in standby, the serial data outputs will be in a high impedance state.
NC NC CSb PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 VSS
2
X5114
IRQA/IRQB (Interrupt Outputs) These are open-drain Interrupt Request output pins. They are designed for multidrop wired ORing. Internal registers control the operation of the IRQ lines. See "CONTROL/STATUS REGISTERS" on page 12 for information about the internal control registers. See "INTERRUPT REQUESTS" on page 23. for an operational description of the IRQ lines. PA7-PA0/PB7-PB0 (Port A/Port B) Each bit of these 8-bit ports can be programmed to act as either an input or output. An 8-bit nonvolatile Data Direction Control Register for each port (DDRA/DDRB) controls the direction of each pin. All I/Os can enter a high impedance state when PCE is inactive. This is a configurable option (see "Port I/O Configuration Register (PCR)" on page 14 for details). In addition to the I/O programmability, Port A and Port B can be configured with handshake to provide a high speed parallel data transfer pathway. See "Handshake I/O subsystem" on page 17 for details. A7-A0 (Device Address Inputs) These inputs set a slave address for the X5114 (see "Device Addressing" on page 3 for details about addressing modes). These pins can be either hardwired or actively driven. If hardwired, these pins need to be tied to Vcc or Vss. If actively driven, the pins must be driven to VIH or VIL and they must be constant and stable during each transmission period. VCC (System Supply) This is the system supply voltage input for the device. Two VCC pins are provided. VSS (System Ground) This is the system ground voltage reference input for the device. Two VSS pins are provided. CSO (Chip Select Output) This is an output pin to indicate that the host system is in communication with the device. The CSO is asserted active LOW (logic "0") whenever the device is selected by the host system. The CSO shall remain active during all communications and shall be de-asserted with the rising edge of either the CSa or the CSb signal. This signal helps manage access to the SPI ports by two independent host processors. CSC (Chip Select Cascade Output) This is an output pin that enables device cascading. When receiving a NOP instruction, the device asserts the CSC signal active LOW (logic "0"). This enables another
3
bank of devices while the device executing the NOP ignores subsequent commands and data. The rising edge of either the CSa or the CSb signal de-assertes the CSC signal. PCE (Port Chip Enable) This is a dedicated active HIGH schmitt trigger input pin to the X5114. The primary function of this input is to inhibit the generation of interrupts via an external control signal. When de-asserted (logic "0"), this input disables the IRQA and IRQB outputs. This input may be configured to both disable the IRQA and IRQB outputs and tri-state all of the Port A and Port B output drivers when de-asserted. DEVICE ARCHITECTURE The X5114 consists of two major sections. The first is a dual independent SPI serial interface. This full duplex interface provides seperate SPI ports for primary and secondary host controllers, but does not support simultaneous access. The SPI interface is compatible with industry standard SPI hardware. The host uses a command protocol to read the status of the X5114, to read and write various function registers that control device operation and to access the memory array. The second section of the X5114 consists of a sophisticated port structure. The dual 8 bit ports can be configured in a number of ways to meet the specific needs of the application. The port can serve as a general I/O, with default outputs or default input compare values. The port can also be configured with one of four different handshake options. In addition to these two main sections, an interrupt controller can be configured to report a number of conditions back to the host microcontroller. See Figure 21 on page 23. These include failed SPI communications, input changes, handshake conditions, or port interrupts. SERIAL COMMUNICATIONS Two independent Serial Peripheral Interface (SPI) Ports provide the primary communication connection to the X5114. Device Addressing The X5114 supports a bidirectional bus oriented protocol. This protocol defines any device that sends data onto the bus as a transmitter and the receiving device as the receiver. The device controlling the transfer is a master and the device being controlled is a slave.
X5114
The master will always initiate data transfers and provide the clock for both transmit and receive operations. The X5114 is considered a slave for all operations. The X5114 has special addressing mechanisms to allow up to 255 devices (or more after using the NOP command) to reside on one SPI communication bus. This reduces the number of bus lines required to talk to multiple X5114 devices. Communication to the device begins with a start condition. This consists of the falling edge of CSa or CSb. Following a CSa/CSb HIGH to LOW, the master selects one of many X5114 devices on the SPI bus, by transmitting a slave address (Software Device Addressing) or selects the only device on the bus using the CSa/CSb signal (Hardware Device Addressing). Software Device Addressing Mode In this device addressing mode, each X5114 has a unique slave address externally specified by the A7-A0 pins. The first byte transmitted to the device contains the device address. This address is compared with the external address pins, A7-A0. If matched, the device performs the task specified by the Instruction opcode sent in the next byte. If there is no match, the X5114 returns to the standby state.
Device Address (Software Addressing only)
DA7 MSB DA6 DA5 DA4 DA3 DA2 DA1 DA0 LSB
FIGURE 1. SPI Communications - Addressing Modes (Read example) Software Addressed:
CSa/CSb
SCKa/SCKb Device Address SIa/SIb Instruction Data In Don't Care Data Out DDDDDDDD 76543210
DD DDD D DD O OO OOOOO AA AAAAAA PPP PPPPP 76 543210 765 43210 Status
SOa/SOb
SSSSSSSS 76543210
CSO
Hardware Addressed:
CSa/CSb
SCKa/SCKb Instruction SIa/SIb OOOOOOOO PPPPPPPP 76543210 Status SOa/SOb SSSSSSSS 76543210 Data In Don't Care Data Out DDDDDDDD 76543210
CSO
4
X5114
Hardware Device Addressing Mode In this addressing mode, all the external address pins are tied to logic "0". The device is selected solely by the CSa or CSb pins. As soon as the CSa or CSb pin goes LOW and stays LOW, the device will be in the active state. No slave address byte is needed in this mode. Chip Select Output/Device Cascade (CSO/CSC) The CSO and CSC output pins have two major functions. The CSO pin can be used as a chip select indicator. This signal indicates that the host processor has selected this device. The CSC signal allows the cascade of multiple banks of X5114 devices. In a cascade mode, the CSC output of a selected X5114 selects another external device by using the NOP instruction. (see "NOP" on page 7 ) Instruction Opcode The second byte transmitted to the device (or the first byte in hardware addressing mode) contains the Instruction opcode that defines the operation to be performed. All the opcode bits have been specially arranged to achieve a 2-bit difference between opcodes to reduce the possibility of inadvertent operations. "0101" = Port I/O Configuration Register operation, "1100" = Port IRQ Error Register operation, "1110" = Port IRQ Failed Command Register operation, "1111" = Port Registers operation. INSTRUCTION SUMMARY Each instruction must be proceeded with a HIGH to LOW transition on CSa or CSb and be terminated by a LOW to HIGH transition on CSa or CSb. There is no restriction as to which of the two SPI interface ports receives an instruction or combination of instructions. If the instruction initiates a nonvolatile write operation, as indicated in Table 1, "Instruction Opcodes," on page 6 and in the instruction definitions, the write cycle begins at the rising edge of the CSa or CSb signals. However if the CSa or CSb goes HIGH before the device address, command, and data are sent completely (e.g. when the clock is not a multiple of eight), then no nonvolatile write cycle starts, the WEL will not reset, and there will be an incomplete transmission (i.e. a failed command). In a failed command, an interrupt signal informs the host processor of a fault condition. After completion of a nonvolatile write cycle, the circuitry automatically clears the Write Enable Latch (WEL). The nonvolatile write typically takes much less than the maximum time to complete. However, the Status Register WIP bit indicates the nonvolatile wrte status. After receiving a valid address, the X5114 returns the status register contents so an host has an early end of write cycle indication. If WIP is HIGH, the write is still in progress. If WIP is LOW, the X5114 is available for continued operations.
Instruction Opcode
OP7 MSB OP6 OP5 OP4 OP3 OP2 OP1 OP0 LSB
OP7, OP6 "00" = memory operation, "01" = port A operation, "10" = port B operation, "11" = Control Register operation. OP5, OP4 "01" = port-related read command, "10" = port-related write command. OP3, OP2, OP1, OP0 "0000" = Configuration Register operation, "0001" = Port Latch operation, "0010" = Port Desired Value Register operation, "0100" = Port Data Direction Register operation, "1000" = Port IRQ Mask Register operation, "0011" = Port IRQ Configuration Register operation,
5
X5114
Table 1. Instruction Opcodes Command
NOP RML RMH WML WMH SWEL RWEL RMPR RPAL RPBL RDVRA RDVRB RDDRA RDDRB WMPR WDVRA WDVRB WDDRA WDDRB RIAE RIBE RFCR RIAM RIBM RICR RPCR RTBL WIAM WIBM WICR WPCR WTBL
Notes: (1) In this condition, the HV Write Cycle will not proceed when the X5114 is configured in the handshake mode. (2) The number of command bytes listed here is for software addressing mode. For memory sequential read and page write, the minimum number is 4. The minimum number of bytes required for NOP is 2. (3) All other possible instruction opcodes are illegal commands.
Operation
Opcode (3)
00h [0000 0000] 05h [0000 0101] 06h [0000 0110]
Operation
No Operation Read Memory Low Read Memory High Write Memory Low Write Memory High Set Write Enable Latch Reset Write Enable Latch Read Multiple Port Registers Read Port A Latch Read Port B Latch Read Desired Value Register Port A Read Desired Value Register Port B Read Data Direction Register Port A Read Data Direction Register Port B Write Multiple Port Registers Write Desired Value Register Port A Write Desired Value Register Port B Write Data Direction Register Port A Write Data Direction Register Port B Read IRQA Error Register Read IRQB Error Register Read IRQ Failed Command Register Read IRQ Mask Register Port A Read IRQ Mask Register Port B Read IRQ Configuration Register Read Port I/O Configuration Register Read Threshold/Block Lock Register Write IRQ Mask Register Port A Write IRQ Mask Register Port B Write IRQ Configuration Register Write Port I/O Configuration Register Write Threshold/Block Lock Register
HV Write Cycle Bytes(2)
2+ 4+ 4+ Y Y 4+ 4+ 2 2 16 3 3 3 3 3 3 Y Y
(1) (1)
Memory Access
09h [0000 1001] 0Ah [0000 1010] 03h [0000 0011] 0Ch [0000 1100] DFh [1101 1111] 51h [0101 0001] 91h [1001 0001]
Read Port
52h [0101 0010] 92h [1001 0010] 54h [0101 0100] 94h [1001 0100] EFh [1110 1111] 62h [0110 0010]
11 3 3 3 3 3 3 3 3 3 3 3 3
Write Port
A2h [1010 0010] 64h [0110 0100] A4h [1010 0100] 5Ch [0101 1100] 9Ch [1001 1100] DEh [1101 1110] 58h [0101 1000] 98h [1001 1000] D3h [1101 0011] D5h [1101 0101] D0h [1101 0000] 68h [0110 1000] A8h [1010 1000] E3h [1110 0011] E5h [1110 0101] E0h [1110 0000]
Y
Y Y
Read Error Condition
Read Configuration
Y Y Y Y Y
3 3 3 3 3
Write Configuration
6
X5114
NOP
No Operation
NOP is a special instruction opcode which accesses the device without any operation. It is primarily used in conjunction with the CSC output. After a NOP CSC goes , LOW and the device goes into standby, ignoring any subsequent data sent on the SI pin and putting the SO pin in a high impedance state. With the NOP instruction, the host processor can communicate with other SPI devices (including other X5114s) in the system without affecting the currently selected device. In this way, an unlimited number of X5114s can reside in a system. Memory Access Operations To decode all 512 bytes in the memory array requires a 9-bit address. This would normally require a 2-byte memory address. However, the X5114 uses two different read opcodes (RMH and RML) and two different write opcodes (WMH and WML) to reduce the number of bytes in the command, with the most significant bit of the address incorporated in the instruction opcode. The RMH and WMH Opcodes access the upper half ($100h-$1FFh) of the array while the RML and WML Opcodes access the lower half ($000h-$0FFh). RML
Read Memory Low
array boundary ($0FFh), the address counter continues to the first address in the upper half of the memory ($100h). When reaching the upper address boundary ($1FFh), the address counter rolls over to address $000h, allowing the read cycle to be continued indefinitely. The read cycle is terminated by taking CSa or CSb high. RMH
Read Memory High
The Read Memory High instruction allows users to read the data in the upper half of the memory array from $100h to $1FFh. Its function is similar to the RML Command. WML
Write Memory Low
NONVOLATILE
The Read Memory Low instruction reads the data in the lower half of the memory array, from address $000h to $0FFh. After sending the instruction opcode and byte address, the data at the selected address shifts out on the SO line. Continued clocking sequentially shifts out data stored in memory at the next address and automatically increments the address to the next location after each byte of data. When reaching the lower half Figure 2. NOP (No Operation)
CSa/CSb Device Address Instruction Opcode SR Data
The Write Memory Low instruction writes new data to the lower half of the memory array from $000h to $0FFh. Prior to any attempt to write data into the memory array, the Write Enable Latch must first be set by issuing the SWEL instruction. The user may write up to 32 bytes of data to the memory in a single write instruction. The only restriction is that the 32-byte data must reside on the same page, i.e. the upper 3 address bits must be the same for all of the bytes of data to be written. The lowest 5 address bits automatically increment after transmission of each byte. After the lowest 5 address bits reach $11111b, they roll over to $00000b while the 3 higher order address bits remain unchanged. The 32-byte page can be written with data and then over-written indefinitely. In this case, only the last 32 bytes of data transmitted will be written to the EEPROM during the nonvolatile write cycle which follows.
SIa/SIb
SOa/SOb
CSO
CSC
7
X5114
WMH
Write Memory High
NONVOLATILE
The Write Memory High instruction allows users to write new data to the upper half of the memory array from $100h to $1FFh. Its function is similar to Write Memory Low. SWEL
Set Write Enable Latch
register. Setting the Write Enable Latch sets the WEL flag in the Status Register (SR) to "1". The Write Enable Latch remains set until a Reset WEL instruction, the device powers down, or the completion of a nonvolatile write operation. RWEL
Reset Write Enable Latch
VOLATILE
VOLATILE
The Set Write Enable Latch instruction sets the Write Enable Latch. This instruction must be completed before any nonvolatile write cycle operation can begin. Setting the WEL is not required prior to a write to a volatile Figure 3. Read Memory (RML or RMH)
CSa/CSb
The Reset Write Enable Latch instruction resets the Write Enable Latch. Resetting the Write Enable Latch resets the WEL flag in the Status Register (SR) to "0". The WEL bit LOW inhibits any nonvolatile memory write operation.
SIa/SIb
Device Address
Instruction Opcode SR Data
Memory Address Memory Data-1st Memory * * * * * * * * Data-512nd
SOa/SOb
Figure 4. Write Memory (WML or WMH)
CSa/CSb Device Address Instruction Opcode SR Data Memory Address Memory Data-1st Nonvolatile Memory Data-32nd Write Cycle
SIa, SIb
********
SOa, SOb
Figure 5. Set/Reset Write Enable Latch (SWEL/RWEL)
CSa/CSb
SIa/SIb
Device Address
Instruction Opcode SR Data
SOa/SOb
8
X5114
Read Port Operations RMPR
Read Multiple Port Registers
In the handshake mode, the external strobe signal (STRA) latches data into the PORT A Latch. The RPAL instruction triggers the input handshake sequence and reads data from the PORT A Latch. For Port B, the data is always latched by the decoding of the RPBL instruction. RDVRA, RDVRB
Read Desired Value Register A, B
The RMPR Instruction allows the user to read all of the Port-related registers, both volatile and non-volatile. See Figure 6 on page 10. After the sending the instruction opcode on the SIa or SIb line, the host reads data out on the SOa or SOb line in the order as shown in Table 2, "Multiple Register Read Order (RMPR)," on page 9. Maintaining CSa or CSb LOW and clocking SCKa or SCKb allows continuous reading of the registers. Once the CSa or CSb goes HIGH, the command terminates. Table 2. Multiple Register Read Order (RMPR) Read Order
1 2 3 4 5 6 7 8 9 10 11 12 13 14
The RDVRA and RDVRB instructions read the contents of the respective Desired Value Register (DVRA or DVRB). See Figure 8 on page 10. In the general I/O mode, the contents of DVRA or DVRB relate to fault monitoring. In the handshake mode, the DVRA and DVRB contain the status of the output pins. RDDRA, RDDRB
Read Data Direction Register A, B
Register
PAL PBL DDRA DDRB IAM IBM DVRA DVRB IAE IBE PCR CR ICR FCR
Description
Port A Latch Port B Latch Data Direction Reg. A Data Direction Reg. B IRQ Mask Register A IRQ Mask Register B Desired Value Register A Desired Value Register B IRQA Error Register IRQB Error Register Port I/O Configuration Register Configuration Register IRQ Configuration Register IRQ Failed Command Register
The RDDRA and RDDRB instructions read the current settings of the Data Direction Register. See Figure 8 on page 10. Write Port Operations WMPR
Write Multiple Port Registers
NONVOLATILE
The WMPR instruction writes to a number of Port-related configuration registers in a single write operation. Figure on page 10. After sending the device address and the instuction opcode, data sent through the SI line will be written successively to the registers. The data must be written to the device in order, as shown in Table 3, "Multiple Register Write Order (WMPR)," on page 11. After the completing the sequence of data, a nonvolatile write cycle begins after the CSa or CSb goes HIGH.
RPAL, RPBL
Read Port A, B Latch
The Port A Latch and Port B Latch are read only. The RPAL and RPBL instructions read data from the Port A Latch or Port B Latch. In the General I/O mode, decoding of the RPAL instruction latches data into the PORT A Latch. The data returned from the Port A Latch provides a "snapshot" of the conditions at the port pins when the RPAL instruction was decoded.
9
X5114
Figure 6. Read Multiple Port Registers (RMPR)
CSa/CSb
SIa, SIb
Device Address
RMPR Opcode SR Data PBL Data FCR Data
SOa/SOb
PAL Data
********
Figure 7. Write Multiple Port Registers (WMPR)
CSa/CSb Start Nonvolatile Write Cycle
SIa/SIb
Device Address
WMPR Opcode
DVRA Data
DVRB Data
********
ICR Data
SOa/SOb
SR Data
WMPR Opcode
Figure 8. Read Register - Single
CSa/CSb
Figure 9. Write Register - Single
CSa/CSb Start Nonvolatile Write Cycle
SIa/SIb
Device Address
Instruction Opcode SR Data
SIa/SIb
Device Instruction Address Opcode SR Data
Register Data Instruction Opcode
SOa/SOb
Register Data
SOa/SOb
10
X5114
Table 3. Multiple Register Write Order (WMPR) Write Order
1 2 3 4 5 6 7 8 9
Read Error Conditions RIAE, RIBE
Read IRQA, IRQB Error Register
Register
DVRA DVRB DDRA DDRB IAM IBM PCR CR ICR
Description
Desired Value Reg. A Desired Value Reg. B Data Direction Reg. A Data Direction Reg. B IRQ Mask Register A IRQ Mask Register B Port I/O Configuration Register Configuration Register IRQ Configuration Register
The RIAE and RIBE instructions return the contents of the IRQ Error Registers. See Figure 8 on page 10. This provides status on port error conditions. RFCR
Read Failed Command Register
The Read Failed Command Register instruction allows the host to track the most recent bad command. A bad command is defined as one with: * an unknown or illegal instruction opcode * an incomplete transmission of a command which can be instruction opcode, address, or data. As an example, CSa or CSb goes HIGH when the clock count is not a multiple of 8. Detection of a bad command sets a Failed Command (FC) flag in the Status Register (SR) and asserts the IRQA or IRQB signal, if enabled. The Failed Command Register contains the Error information. The host read of the Failed Command Register clears IRQA and IRQB signals and the FC flag. However, the RFCR instruction will not clear the Failed Command Register. The FCR will only store the most recent bad command if there were more than one bad command in a sequence. Also the information in the FCR is only updated when a bad command is discovered. Read Configuration RIAM, RIBM
Read IRQA, IRQB Mask Register
WDVRA, WDVRB
Write Desired Value Register A, B
NONVOLATILE
The WDVRA and WDVRB instructions write data to the Desired Value Registers. See Figure 9 on page 10. In the general I/O mode, these instructions load the Desired Value Registers with desired data to monitor the input/output pin level (Fault Monitoring). This data value compares with the signal on the corresponding input port pins. Any differences can generate an interrupt. Taking CSa or CSb HIGH following the WDVRA or WDVRB instruction starts a nonvolatile write cycle that mirrors the data into a nonvolatile location. Power cycling the device restores the nonvolatile value to the DVRA and DVRB registers. In the handshake mode, the WDVRA instruction writes data directly to the Port A output pins (i.e., no nonvolatile write cycle) and triggers an output handshake sequence. The WDVRB instruction writes data directly to the Port B output pins 3-0 (pins 7-4 are not available since they are part of the handshake mechanism). Data on Port B pins 3-0 are mirrored into a nonvolatile location by a nonvolatile write cycle. WDDRA, WDDRB
Write Data Direction Register A, B
The RIAM and RIBM instructions return the contents of the respective IRQ Mask Register. See Figure 8 on page 10. RICR
Read IRQ Configuration Register
NONVOLATILE
The WDDRA and WDDRB instructions write new data to the Data Direction Registers. See Figure 9 on page 10. This selects the direction of each of the port pins.
The RICR instruction returns the contents of the IRQ Configuration Register. See Figure 8 on page 10. RPCR
Read Port I/O Configuration Register
The RPCR instruction returns the contents of the PORT I/O Configuration Register. See Figure 8 on page 10.
11
X5114
RTBL
Read Threshold/Block Lock Register
Status Register (SR)
WIP WEL PCE FC RDR XRE IRQA IRQB
The RTBL instruction returns the contents of the Threshold/Block Lock Register. See Figure 8 on page 10. Write Configuration WIAM, WIBM
Write IRQA, IRQB Mask Register
Volatile MSB LSB
NONVOLATILE
WIP
0 1
Write In Progress flag.
no nonvolatile write cycle in progress nonvolatile write cycle is in progress
The WIAM and WIBM instructions write new data to the respective IRQ Mask Register. See Figure 9 on page 10. WICR
Write IRQ Configuration Register
WEL Write Enable Latch flag NONVOLATILE
0 1 write enable latch has not been set write enable latch is set
The WICR instruction writes new data into the IRQ Configuration Register to change interrupt operations. See Figure 9 on page 10. WPCR
Write Port I/O Configuration Register
PCE
0 1
PCE Pin Input Status
PCE pin is at Logic 0 PCE pin is at Logic 1
NONVOLATILE
FC
0 1
The WPCR instruction writes new data into the Port I/O Configuration Register to change the Port I/O functionality. See Figure 9 on page 10. WTBL
Write Threshold/Block Lock Register
Failed Command flag--Power on default = 1
no command failures command failure (abnormal termination)
NONVOLATILE
RDR Receive Data Ready flag (Single Read Input and Bidirectional Modes)
0 1 no data is latched latched data is ready for read at Port A
The WTBL instruction writes new data to the Threshold/Block Lock Register to select different modes of operations. See Figure 9 on page 10. CONTROL/STATUS REGISTERS The X5114 has a number of registers to monitor and control the operation of the device. Access to the control registers are via SPI Commands. The status register contains the status of the most critical operating conditions. The contents are placed on the output pins in synchronization with the incoming op code (providing the device is addressed correctly). The status register cannot be written to directly.
XRE
Transmit Register Empty flag (Output and Bidirectional Modes)
Port A data has not been read by the external system and is not ready to accept new data from the SPI interface Port A is ready to accept the new data from the SPI interface.
0 1
IRQA Interrupt Port A
0 1 Interrupt A is not asserted Interrupt A is asserted
IRQB Interrupt Port B
0 1 Interrupt B is not asserted Interrupt B is asserted
12
X5114
Threshold/Block Lock Register (TBL).
TU2 TU1 TU0 TL2 TL1 TL0 AIN BL
Port Desired Value Register (DVRA and DVRB)
DVR A7 DVR A6 DVR A5 DVR A4 DVR A3 DVR A2 DVR A1 DVR A0
Nonvolatile MSB LSB
General I/O = Nonvolatile, Handshake = Volatile MSB LSB DVR B6 DVR B5 DVR B4 DVR B3 DVR B2 DVR B1 DVR B0
TU2, TU1, TU0
Input Threshold level upper bits
These bits store the desired input threshold level for the analog mode of pins PA7 to PA4
DVR B7
General I/O = Nonvolatile, Handshake = Volatile MSB
Nonvolatile LSB
TL2, TL1, TL0
Input Threshold level lower bits
These bits store the desired input threshold level for the analog mode of pins PA3 to PA0
ADS Analog/Digital Mode Select Bit
0 1 digital mode analog mode
The DVRA register has two functions. In the general I/O mode, DVRA is nonvolatile and stores the desired output data or the desired value for I/O monitoring. Writes to DVRA in this mode generate a nonvolatile write cycle. In the handshake mode, DVRA is volatile and there is no nonvolatile write. The DVRB Register bit3 to bit0 are always nonvolatile regardless of the mode. DVRB7 to DVRB4 are nonvolatile in the general I/O mode and store the Port B output data or the desired value for I/O monitoring. DVRB7 to DVRB4 are volatile in the handshake mode .
BL
0 1
Block Lock Configuration
no memory block locked address $000h to $1FFh locked (writes prohibited)
Figure 10. Input Threshold Control Settings ADS TU2 TU1 TU0 ADS TL2 TL1 TL0
Vcc
Vcc
1111 1110 1101 1100 0 x x x
1111 1110 1101 1100 0 x x x
1011 1010 1001 1000
Vss
1011 1010
Comparator
1001 1000
Vss PA3-PA0
Schmidt Trigger
Filter
PA7-PA4
13
Internal Port Bus
X5114
Port I/O Configuration Register (PCR)
TRI CEM HS2 HS1 HS0 PLS EGA INVB
Port Latch (PAL and PBL)
PAL7 PAL6 PAL5 PAL4 PAL3 PAL2 PAL1 PAL0 Volatile LSB MSB LSB
Nonvolatile MSB
TRI
0 1
Port tri-state configuration (Output Mode only)
disables tri-state operation enables tri-state operation
PBL7 PBL6 PBL5 PBL4 PBL3 PBL2 PBL1 PBL0 Volatile MSB LSB
CEM Port Chip Enable Mode Configuration
0 1 PCE pin LOW disables IRQA and IRQB, PCE pin LOW disables IRQA and IRQB and tri-states all port outputs (regardless of the content of the DDR)
Port Latches are read-only input registers. In the general I/O mode, decoding the SPI opcode latches data into the PORT A Latch. In the handshake mode, sensing the STRA input latches input data into the PORT A Latch. Decoding the SPI opcode always latches data into the PORT B Latch, regardless of the I/O mode.
HS2, HS1, General/Handshake Mode configuration HS0
0xx 100 101 110 111 general I/O mode Multiple Read Input Mode (multiple read of the Port A Latch) Single Read Input mode (single read of the Port A Latch) Output Mode Bidirectional Mode
Port Data Direction Register (DDRA and DDRB)
DDR DDR DDR DDR DDR DDR DDR DDR A7 A6 A5 A4 A3 A2 A1 A0 Nonvolatile MSB LSB
PLS Handshake Pulse/Interlocked Mode config.
0 1 interlocked handshake mode pulse handshake mode
DDR DDR DDR DDR DDR DDR DDR DDR B7 B6 B5 B4 B3 B2 B1 B0 Nonvolatile MSB LSB
EGA
0 1
Handshake strobe (STRA) active edge
falling edge active rising edge active
DDRA7- Port A Data Direction Register DDRA0
0 1 Port I/O in an input Port I/O is an output
INVB Handshake ready (STRB, TDRE, RDRF) active level
0 1 Logic `0' is the active level Logic `1' is the active level
DDRB7- Port B Data Direction Register DDRB0
0 1 Port I/O in an input Port I/O is an output
During Handshake modes, all of DDRA and the upper half of DDRB (DDRB7-DDRB4) are ignored.
14
X5114
IRQ Mask Register (IAM and IBM)
0 IAM7 IAM6 IAM5 IAM4 IAM3 IAM2 IAM1 IAM0 Nonvolatile MSB LSB 1 no, the Port B I/O has no error (Fault Monitoring) yes, the Port B I/O has an error (Fault Monitoring)
IRQ Configuration Register (ICR)
0 Fixed ORAB ENFC ERDR EXRE EIOE ENA ENB Nonvolatile LSB
IBM7 IBM6 IBM5 IBM4 IBM3 IBM2 IBM1 IBM0 Nonvolatile MSB LSB
MSB
IAM7IAM0
0 1
Port A Interrupt Mask
Enables the Input/Output Error - Fault Monitoring on the corresponding Port A I/O pin Disables the Input/Output Error - Fault Monitoring on the corresponding Port A I/O pin.
ORAB
0 1
IRQA/IRQB Routing
IRQA and IRQB individually represent Port A and Port B interrupt status and are not ORed together IRQA and IRQB provide redundancy and are ORed together
ENFC Failed Command Interrupt configuration
0 disables interrupt generated by Failed Command enables interrupt generated by Failed Command
IBM7IBM0
0 1
Port B Interrupt Mask
Enables the Input/Output Error - Fault Monitoring on the corresponding Port B I/O pin Disables the Input/Output Error - Fault Monitoring on the corresponding Port B I/O pin.
1
ERDR Receive Data Ready interrupt configuration
0 1 disables IRQA generated by the RDR flag enables IRQA generated by the RDR flag.
IRQ Error Register (IAE and IBE)
IAE7 IAE6 IAE5 IAE4 IAE3 IAE2 IAE1 IAE0
EXRE
0 1 LSB
XRE interrupt configuration
disables IRQA generated by XRE flag enables IRQA generated by XRE flag
Volatile (Read only) MSB IBE7 IBE6 IBE5 IBE4 IBE3 IBE2 IBE1
EIOE
0 1
Input/Output Error interrupt configuration
disables interrupt generated by Input/Output Error enables interrupt generated by Input/Output Error
IBE0
Volatile (Read only) MSB LSB
ENA
0 1
IRQA output configuration
disables IRQA interrupt output enables IRQA interrupt output
IAE7- Interrupt A Error Flags IAE0
0 1 no, the Port A I/O has no error (Fault Monitoring) yes, the Port A I/O has an error (Fault Monitoring)
ENB
0 1
IRQB output configuration
disables IRQB interrupt output enables IRQB interrupt output
IBE7- Interrupt B Error Flags IBE0
15
X5114
Failed Command Register (FCR)
FCR7 FCR6 FCR5 FCR4 FCR3 FCR2 FCR1 FCR0 Volatile MSB LSB
(DVRA/DVRB) and the Port Latch (PAL/PBL). The DVRA/DVRB registers consist of a volatile and a nonvolatile part. Port fault management logic allows each I/O the ability to generate an interrupt condition. A mismatch between the value at the pin and the Desired Value for that pin generates a fault condition and sets a flag. The flag triggers an output IRQA or IRQB signal when allowed to by the EIOE and ENA/ENB bits in the IRQ Configuration Register and by the PCE (Port Chip Enable) pin. The PCE pin can be configured so a LOW PCE disables the output of interrupts. Or it will disable the output of interrupts and force all port pins to a high impedance state. Port A and Port B pins configured as outputs power up with a preset state. This is valuable if control of peripherals is necessary before the host processor has initialized after a power failure. Data written through the SPI serial port to the DVRA or DVRB registers is latched into both the volatile and nonvolatile parts of the register. Upon a power up condition, the volatile part of the Desired Value Register is restored by the contents of the nonvolatile part and this restored data appears at the output. At the same time, data is readable with the Read Port instruction and the pin can generate an interrupt if the output does not match the value in the desired value register (for example, if the pin is shorted to ground and a HIGH signal is expected).
The Failed Command Register (FCR) contains an $FFh if the bad command is unknown or is an incomplete transmission of an opcode. The FCR contains the corresponding instruction opcode, following an incomplete transmission of the address or data. PORT I/O OPERATION The X5114 has a total of 16 I/O pins equally divided between Ports A and B. The functionality of the pins is established by several non-volatile configuration registers. The I/O Ports can be configured as General I/O or as one of four Handshake Configurations. Configured as general I/O, each of the pins of Port A and Port B can be set as either an input or output via bits in a nonvolatile Data Direction Register. In each of the four handshake modes below, Port A provides an 8-bit parallel data transfer with one, two or four of Port B's pins used for handshake signals (depending upon the operational mode). Port B pins not used for handshake are always used as general I/O. General I/O Ports A and B each consist of eight bidirectional pins independently configured by a corresponding bit in a non-volatile Data Direction Register (DDRA/DDRB). The internal interface to Ports A and B consist of two independent registers, the Desired Value Register
THRESHOLD CONTROL
Port A input pins can also be configured with an 10 level analog threshold. The digital reference value was found in the Desired Value Register with the compare threshold set at VCC*0.5 by ADS bit LOW. Three nonvolatile bits in the TBL and ADS HIGH select an analog reference level
Figure 11. General I/O and Fault Monitoring Configuration (Port A)
Bits From TBL Reg Desired Value
TU2/TL2 TU1/TL1 TU0/TL0
ADS
AIN
Threshold Control
Comp
Filter MUX IAEx
PA7-PA0
PAL DVRA
RPAL Instruction Decode WDVRA Instruction Decode
16
X5114
for each port. If an input signal exceeds the analog threshold, a HIGH is detected. This input compares with the desired value register contents. A mismatch of the two values generates a fault condition, sets a flag and generates an interrupt as described for digital fault monitoring. Reading data in from the port A pins latches data into the PAL register. Handshake I/O subsystem The handshake I/O subsystem involves all of Port A and up to four Port B pins. The four primary modes of operation for the handshake I/O subsystem are: * * * * Single Read Input Multiple Read Input Output Bi-directional The handshake I/O subsystem efficiently supports high speed data transfers between an external system and a controlling master through the SPI ports of the X5114. These four handshake modes support a variety of 8-bit parallel data applications, such as interfacing to a simple 8-bit latch, an A/D converter or a microcontroller. The 8-bit parallel data path uses Port A, with the handshake I/O signals interfacing to Port B. For applications which do not require high speed 8-bit parallel data transfer, the handshake functions can generally be ignored. When handshake functions are used, the remaining Port B pins serve as general I/O without interfering with the handshake functions. Table 4 on page 17 shows the different functions of port B pins for different port I/O handshake modes.
Table 4. Special Port B Pins in Handshake Modes Mode Entry HS2 HS1 HS0
101
Handshake Mode
Read Input
Port B Pin
PB7 PB6 PB5/PB4 PB6 PB7/PB5/PB4 PB7 PB5 PB6/PB4 PB7 PB6 PB5 PB4
Pin Function
STRA TDRE X STRB X STRA RDRF X R/W TDRE RDRF PEN
Data Direction
IN OUT X OUT X IN OUT X IN OUT OUT IN
Configure Signal Polarity
EGA bit (PCR reg) INVB bit (PCR reg) X INVB X EGA INVB X none INVB INVB none
Multiple Read Input
100
Output
110
Bi-directional
111
Single Read Input Mode
SIGNALS:
* Port A is the high speed input data port. * STRA (PB7) is the stobe input. An external device uses this signal to write new data into the Port A Latch. The EGA bit selects which edge of the STRA input will register the input data. * TDRE (PB6) is the ready output signal. This signal notifies the external device that new data can be written. Reading the port data via the SPI port automatically resets the TDRE signal. The invert bit (INVB) sets the active level of the TDRE output signal. * RDR Flag - The STRA signal sets the RDR flag in the Status register. Once set, the RDR flag automatically inhibits further writes into PORT A from the external
17
EXAMPLE APPLICATION:
A local slave controller identifies a condition that requires action and initiates a sequence by sending a command byte to the X5114 through the parallel port. A Strobe signal from the slave controller latches in the data and generates an interrupt to a remote, host system. The host reads the data on the SPI lines and takes appropriate action. Reading the data automatically frees the port for the next input byte.
MODE ENTRY:
Set HS2, HS1, HS0 bits in PCR register to 101
X5114
Figure 12. Single Read Input Mode - Parallel Write
STRA (PB7 in) Don't Care Empty Valid Port Data Full Don't Care
Port A Data RDR (Flag) interlocked mode TDRE (PB6 out) pulsed mode IRQA
Figure 13. Single Read Input Mode - SPI Read
CSa/CSb
SCKa/SCKb Device Address SIa/SIb RPAL Instruction Don't Care PAL Data Out DDDDDDD 7654321 D 0
DD DDD D D DO OO OOOOO AA AAAAA APPP PPPPP 76 54321 0765 43210 Status Register Data
SOa/SOb
SSSSSSSS 76543210
interlocked mode TDRE (PB6 out) pulsed mode IRQA RDR (Flag)
device. The host system should not attempt to write to the Port A Latch. The host processor can poll RDR through the SPI port or RDR can generate an external interrupt. The ERDR bit enables the RDR interrupt. * PLS bit - The pulse bit (PLS) HIGH sets the TDRE signal to operate in an "interlocked" mode, where TDRE "tracks" the RDR flag. The PLS bit LOW sets the handshake to operate in a "pulsed" mode.
Fault monitoring on pins PA7-PA0 and PB7-PB6 is disabled in this mode. Fault monitoring and general I/O functionality of the remaining six Port B pins remains user configurable.
18
X5114
Figure 14. Multiple Read Input Mode - SPI Read
CSa/CSb
SCKa/SCKb Device Address SIa/SIb Instruction Don't Care D7:D0 Data DDDDDDD 7654321 D 0
DD DDD D D DO OO OOOOO AA AAAAA APPP PPPPP 76 54321 0765 43210 Status Register Data
SOa/SOb
SSSSSSSS 76543210
Port A STRB (PB6)
D7:D0
CSa/CSb
SCKa/SCKb Don't Care SIa/SIb D7:D0 Data SOa/SOb DDDDDDD 7654321 D 0 Don't Care
Port A
D7:D0
STRB (PB6)
Multiple Read Input Mode
MODE ENTRY:
Set HS2, HS1, HS0 bits in PCR register to 100
EXAMPLE APPLICATION:
An A/D converter connects to the X5114 parallel port. The host reads the A/D converter data through the SPI port. Reading the data automatically generates a STRB output signal that initiates a new A/D conversion cycle.
SIGNALS:
* Port A is the high speed input data port. * STRB (PB6) is the strobe output. The invert bit (INVB) sets the active level of STRB in the multiple read mode. Reading Port A data through the SPI port automatically
19
X5114
Figure 15. Output Mode - SPI Write
CSa/CSb
SCKa/SCKb Device Address WDVRA Instruction DD D DD D D DO OO OOOO O AA AAAAA AP PP PPPPP 76 54321 07 65 43210 Status Register Data SOa/SOb SSSSSSSS 76543210 PORT A Data DDDDDDD D 7654321 0
SIa/SIb
interlocked mode RDRF (PB5 out) pulsed mode IRQA XRE (Flag)
Figure 16. Output Mode - Parallel Read
STRA (PB7 in) Port A Data (Normal) Port A Data (Tristate) Static Valid Port Data Valid Port Data
XRE (Flag) interlocked mode RDRF (PB5 out) pulsed mode IRQA
generates STRB. This mode gives the X5114 the capability of performing multiple data reads while the SPI select line, CSa or CSb remains asserted and SCK clocks data through the SPI port.
Output Mode
EXAMPLE APPLICATION:
The host processor initiates a data byte transfer through the SPI and Port A to a slave processor. The slave then executes the command. This mechanism allows numerous remote processors to reside on the same SPI three wire bus to reduce interface complexity. In this case, the remote processor does not need an SPI port, but communicates via a parallel I/O.
20
X5114
MODE ENTRY:
Set HS2, HS1, HS0 bits in PCR register to 110 the DVRA. The invert bit (INVB) sets the active level of the RDRF output signal. * STRA (PB7) is the strobe input. An external device uses this signal to inform the host that data has been read from Port A and that new data can be written. The user selects the active edge of the STRA input with the EGA bit. * XRE Flag - The STRA signal sets the XRE flag in the Status register. The host processor can poll XRE through the SPI port or XRE can generate an external interrupt. The EXRE bit in the ICR register enables the XRE interrupt.
SIGNALS:
* Port A - Parallel data is sent out through this port. * DVRA Register - The host writes data through the SPI port to this register. In this case, DVRA data is not mirrored into non-volatile memory as in the general I/O mode. * RDRF (PB6) is the output strobe signal. This signal notifies the external device that new data was written to Figure 17. Bi-directional Mode - SPI Write
CSa/CSb
SCKa/SCKb Device Address WDVRA Instruction DD D DD D D DO OO OOOO O AA AAAAA AP PP PPPPP 76 54321 07 65 43210 Status Register Data SOa/SOb SSSSSSSS 76543210 PORT A Data DDDDDDD D 7654321 0
SIa/SIb
interlocked mode RDRF (PB5 out) pulsed mode IRQA XRE (Flag)
Figure 18. Bi-directional Mode - Parallel Read
PEN (PB4 in) R/W (PB7 in) Port A Data (Tristate) Valid Port Data
XRE (Flag) interlocked mode RDRF (PB5 out) pulsed mode IRQA
21
X5114
Figure 19. Bi-directional Mode - Parallel Write
PEN (PB4 in) R/W (PB 7 in) Port A Data RDR (Flag) interlocked mode TDRE (PB6 out) pulsed mode
IRQA
Figure 20. Bi-directional Mode - SPI Read
CSa/CSb
SCKa/SCKb Device Address SIa/SIb RPAL Instruction Don't Care PAL Data Out
DD D DD D D DO OO OOOO O AA AAAAA AP PP PPPPP 76 54321 07 65 43210 Status Register Data
SOa/SOb
S S S S S SS S DDDDDDD D 76543210 7654321 0
interlocked mode TDRE (PB6 out) pulsed mode IRQA RDR (Flag)
* PLS bit - The pulse bit (PLS) HIGH sets RDRF signal to operate in an "interlocked" mode, where RDRF "tracks" the XRE flag. The PLS bit HIGH sets RDRF to operate in a "pulsed" mode. * The TRI bit HIGH disables the tri-state operation of the port, making the outputs always active in this mode. Fault monitoring on pins PA7-PA0, PB7 and PB6 is disabled in this mode. Fault monitoring and general I/O functionality of the remaining six Port B pins remains user configurable.
Bi-directional Mode
EXAMPLE APPLICATION:
This Mode provides full handshake capability to allow bidirectional interraction between the host, communicating over the SPI port and a slave processor communicating over parallel port A. In this mode, Port A looks like an SRAM to the slave processor.
MODE ENTRY:
Set HS2, HS1, HS0 bits in PCR register to 111.
22
X5114
SIGNALS:
* Port A - Bidirectional data passes through this port. * DVRA Register - The host writes data through the SPI port to this register. This SPI write operation sets the XRE status flag LOW and asserts the RDRF signal. The Slave Reads data from this register using PEN LOW and R/W HIGH. * Port A Latch (PAL) - The slave processor writes data through Port A to this register, using PEN LOW and R/W LOW. This write operation sets the RDR flag. The host processor reads this register through the SPI port. * R/W(PB7) is the read/write control for the slave processor. This signal works with the PEN input to make the port look like a static RAM, where a HIGH on R/W selects a read and a LOW selects a write. A read outputs the contents of the DVRA register on the port A pins. A write transfers the data on the port A pins to the Port A Latch (PAL). * The PEN(PB4) input controls the Port A operation and functions like a chip select. PEN HIGH sets all Port A pins to a high impedance state. PEN LOW and R/W HIGH initiates a read operation that terminates on the rising edge of the PEN input. PEN LOW and R/W LOW initiates a write operation that termnates with either the R/W or PEN signals going HIGH. * The TDRE(PB6) output signal provides notification that data was read from Port A and the buffer is now empty. * The RDRF(PB5) output signal notifies the slave processor that new data is available on Port A. * INVB bit - The invert bit (INVB) sets the active level of both the RDRF and TDRE output signals. * The RDR flag in the status register provides status of an external write to Port A. Writing data to the PAL sets RDR HIGH. RDR going HIGH generates an interrupt when the ERDR bit is set. Reading the PAL register through the SPI port clears the RDR bit. * The XRE flag in the status register provides status of an external read of Port A. Writing data to the DVRA through the SPI port sets XRE LOW. Reading the DVRA register through Port A sets the XRE bit. XRE going HIGH generates an interrupt when the EXRE bit is set. * PLS Bit - The pulse bit (PLS) LOW causes the RDRF and TDRE signals to function "interlocked" with the XRE and RDR flags respectively. The PLS bit HIGH causes the RDR and TDRE signals to operate in a "pulsed" mode. The Bi-directional mode disables Fault monitoring on all Port A pins (PA7-PA0) and some Port B pins (PB7-PB4). Fault monitoring and general I/O functions of the remaining four port B pins remain user configurable. INTERRUPT REQUESTS Figure 21 shows the conditions for generating and enabling the interrupts. If not masked out, the occurance of an interrupt sets a flag in the IRQ Error Register. If enabled (by setting the ENA or ENB bits), then an IRQA
Figure 21. Interrupt Flow Chart (Generating, Enabling And Resetting Interrupts)
MASK BITS PA7 DVRA7
Active Only in General I/O
ERROR FLAGS IAE7(1)
IRQA Error Reg
ENABLE BITS
ROUTING BIT
=
IAM7
PA0 DVRA0 PB7 DVRB7
= =
IAM0 IBM7
IAE0(1)
IRQA Error Reg
EIOE
IBE7(2)
IRQB Error Reg
ORAB
ENA PB0 DVRB0 = IBM0 IBE0(2)
IRQB Error Reg
ORAB
IRQA
Active Only in Handshake
RDR Signal XRE Signal
RDR(3)
Status Reg
ERDR EXRE
ENB
(1) (2) (3) (4) (5)
IRQB
XRE(4)
Status Reg
Failed Command
FC(5)
Status Reg 23
ENFC
Reset with RIAE instruction Reset with RIBE instruction Reset with RPAL instruction Reset with RDVRA instruction Reset with RFCR instruction
X5114
or IRQB output signal results, otherwise only the flag is set. Certain instructions clear the interrupt condition (See Figure 21). Clearing an interrupt condition resets the interrupt flag and releases the interrupt output. ABSOLUTE MAXIMUM RATINGS* Temperature Under Bias ...................... -65C to +135C Storage Temperature ............................ -65C to +150C Voltage on any pin with respect to Vss ...........-1V to +7V DC Output Current................................................. 10mA Lead Temperature (Soldering, 10 Seconds) .........300C RECOMMENDED OPERATING CONDITIONS Temp
Commercial Industrial
*COMMENT Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and the functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Min.
0C -40C
Max.
+70C +85C
Supply Voltage
X5114
Limits
5V 10%
D.C. OPERATING CHARACTERISTICS TA = -40C to +85C, Vcc = +4.5V to +5.5V, unless otherwise specified. Symbol
ICC ISB ILI ILO VIL
(1) (1)
Parameter
Vcc Supply Current, fSCKa or fSCKb = 2.0MHz; Vcc = +5.5V; SOa, SOb = Open (Active, Non-Volatile Write States only) Standby Current, Vcc = +5.5V; VIN = Vss or Vcc; CSa = CSb = Vcc; Input Leakage current, VIN = Vss to Vcc Output Leakage current, VOUT = Vss to Vcc Input Low Voltage Input High Voltage Output Low Voltage, IOL = +3mA Output High Voltage, VCC = +5V; IOH = -3mA
Min
Max
5 2 10 10
Unit
mA mA uA uA V V V V
-0.5 Vcc x 0.7 Vcc - 0.8
Vcc x 0.3 Vcc + 0.5 0.4
VIH
VOL VOH
(1) VIL min. and VIH max. are for reference only and not tested.
24
X5114
PORT A INPUT THRESHOLD ADS TU2 TU1 TU0 Parameter(1) Typ (Vcc=5V)
4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5
Typ
Vcc * .9 Vcc * .8 Vcc * .7 Vcc * .6
Max. Error
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
Units
V V V V V V V V V
Comments
1 1 1 1 0 1 1 1 1
1 1 1 1 x 0 0 0 0
1 1 0 0 x 1 1 0 0
1 0 1 0 x 1 0 1 0 Input Port A Threshold Level
Vcc * .5 Vcc * .4 Vcc * .3 Vcc * .2 Vcc * .1
ADS, TU2-TU0 are bits in the Threshold/Block Lock Register (TBL)
Notes: (1) These parameters are periodically sampled and not 100% tested.
CAPACITANCE TA = +25C, VCC = +5V, fSCK = 2.0MHz Symbol
COUT CIN
(1) (1)
Parameter
Output Capacitance Input Capacitance
Max
10 6
Unit
pF pF
Test Conditions
VOUT = 0V VIN = 0V
Notes: (1) This parameter is periodically sampled and not 100% tested.
POWER-ON TIMING Symbol
tRVCC tPOR
(1)
Parameter
Vcc Rise Time Power Supply Stable to Issuance of an Instruction without nonvolatile write Cycle Power Supply Stable to Issuance of an Instruction with a nonvolatile write Cycle
Min
1 5
Max
0.1
Unit
V/uS mS mS
tPOW(1)
25
X5114
A.C. CONDITIONS OF TEST
Input Pulse Levels Input Rise and Fall Times Input and Output Timing Levels Output Load VCC x 0.1 to VCC x 0.9 10 nS VCC x 0.5 Equivalent Output
Equivalent A.C. Test Circuits
5V Port A Port B SO CSC CSO 704 826 IRQA IRQB 100pF
5V 920
100pF
26
X5114
A.C. CHARACTERISTICS SPI Timing (SPI Clock Mode 3 Only) TA = -40C to +85C, Vcc = 4.5V to +5.5V, unless otherwise specified. Symbol
fSCK tCYC tWH tWL tLEAD tLAG tSU tH tRI tFI
(1) (1)
Parameter
SPI Clock Frequency SPI Clock Cycle Time SPI Clock High Time SPI Clock Low Time Lead Time Lag Time Input Setup Time Input Hold Time Input Rise Time Input Fall Time SO Output Disable Time SO Output Valid Time SO Output Hold Time SO Output Rise Time SO Output Fall Time SPI Noise Suppression Time Constant SPIA_CS or SPIB_CS Deselect Time Device Address Setup Time Device Address Hold Time
Min
500 200 200 200 400 50 50
Max
2
Unit
MHz nS nS nS nS nS nS nS
50 50 0 100 0 50 50 20 100 100 0
nS nS nS nS nS nS nS nS nS nS nS
tDIS tV tHO tRO tFO TI tCS tASU tAH
(1) (1)
Notes: (1) This parameter is periodically sampled and not 100% tested.
NONVOLATILE WRITE CYCLE TIMING Symbol
tWC
Parameter
Nonvolatile Write Cycle Time
Typ
5
Max
10
Unit
mS
27
X5114
Input Timing tCS CSa/CSb SCKa/SCKb tSU SIa/SIb MSB tH tWL tLEAD tCYC ... tWH ... tFI LSB tRI tLAG
Output Timing CSa/CSb SCKa/SCKb tV SOa/SOb MSB tHO
... ... LSB
tDIS
Hardware Device Address Timing
CSa/CSb tASU A0 | A7
(Any Instruction) tAH
IRQ GENERATION TIMING Symbol
tIOE tFCE
Parameter
Interrupt Output Enable time (Initial error condition valid or Error condition still valid after reset of error flag.) Failed Command Enable time (CS HIGH to Failed Command error valid)
Min
250 250
Max
800 800
Unit
nS nS
28
X5114
Fault Condition
Interrupt condition still exists
IRQA or IRQB
tIOE
CSa/CSb SCKa/SCKb SIa/SIb C1 C0
tIOE
Don't Care
RIAE or RIBE Instruction
Failed Command Timing
IRQA, IRQB
tFCE
CSa/CSb
Failed Instruction
29
X5114
GENERAL I/O TIMING Symbol
tPSU tPH tPDO Port Setup Time Port Hold Time Port Data Output Valid Time
Parameter
Min
50 50 100
Max
Unit
nS nS nS
Internal (SPI) Read Data From Port A/Port B
SCKa/SCKb SIa/SIb
C1 C0 Don't Care Don't Care
RPAL/RPBL Instruction SOa/SOb D1 SR Data tPH
Data [7:0] D0 D7 D0
PAL/PBL Data
tPSU Port A/Port B (in)
Internal (SPI) Write Data to Port A/Port B
SCKa/SCKb SIa/SIb
D1 D0
Data to DVRA/DVRB SOa/SOb tPDO Port A/Port B(out)
Old Port A/Port B Data New Port A/Port B Data
30
X5114
INPUT MODE TIMING Symbol
tPSU tPH tWSTR tRDRF tRDRE tRDRP tPWRF tPRRE tSTRH tSTRL Port Setup Time Port Hold Time Write Strobe Time RDR Full Time RDR Empty Time RDR Pulse Time Port Write RDR Full Time Port Read RDR Empty Time Strobe High Time Strobe Low Time 250 250
Parameter
Min
50 70 150
Max
Unit
nS nS nS
100 100 1000 800 500 100 100
nS nS nS nS nS nS nS
Single Read input Mode - Parallel Write Data to Port A tWSTR STRA (PB7 in) tPSU Port A Data (in) (interlocked mode) TDRE (PB6 out) (pulsed mode) IRQA RDR (flag)
Empty Valid Port Data
tPH
tRDRF
tPWRF
Full
31
X5114
Single Read input Mode - SPI Read Data From Port A
SCKa/SCKb SIa/SIb
C1 C0 Don't Care Don't Care
RPAL Instruction
SOa/SOb D1 D0 D7 D6
SR Data tRDRE (interlocked mode) TDRE (PB6 out) (pulsed mode) IRQA RDR (flag) tPRRE
Full
PAL Data
tRDRE
tRDRP
Empty
Multiple Read input Mode - SPI Read Data From Port A
SCKa/SCKb SIa/SIb
C1 C0 Don't Care Don't Care
--1st read = RPAL Instruction subsequent reads = don't care SOa/SOb (1st read) D1
D0 D7 D1 D0
--1st read = SR Data subsequent reads = tristate tPSU Port A (in) STRB (PB6-out) tPH
Data [7:0]
PAL Data
tSTRH
tSTRL
32
X5114
OUTPUT MODE TIMING Symbol
tPV tPR tPD tRSTR tXREF tXREE tXREP tPWXF tPRXE Port Valid Time Port Read Time Port XRE Disable Time Read Strobe Pulse XRE Full Time XRE Empty Time XRE Pulse Time Port Write XRE Full Set Time Port Read XRE Empty Time 250 250 0 150 250 100 1000 500 800
Parameter
Min
Max
150 100
Unit
nS nS ns nS nS nS nS nS nS
Output Mode - SPI Write Data to Port A SCKa/SCKb SIa/SIb
D1 D0
Port A Data tPV Ports (Driven Outputs)
Old Port A Data New Port A Data
tXREF (interlocked mode) RDRF (PB5 out) (pulsed mode) IRQA XRE (flag)
Empty
tXREF
tXREP
tPWXF
Full
33
X5114
Output Mode - Parallel Read Data From Port A tRSTR STRA (PB7 in)
Ports (Driven Outputs) tPR Port A Pins (Tri-State Outputs) (interlocked mode) RDRF (PB5 out) (pulsed mode) IRQA
Valid Port Data
tPD
Valid Port Data
tXREE
tPRXE
XRE (flag)
Full
Empty
BI-DIRECTIONAL TIMING Symbol
tPSU tPH tPV tRDRF tRDRE tRDRP tPWRF tPRRE tXREF tXREE tXREP tPWXF tPRXE tPEW tPEPR tPEPD tPEWS tPEWH tPER Port Setup Time Port Hold Time Port Valid Time RDR Full Time RDR Empty Time RDR Pulse Time Port Write RDR Full Time Port Read RDR Empty Time XRE Full Time XRE Empty Time XRE Pulse Time Port Write XRE Full Set Time Port Read XRE Empty Time Port Enable Write Time Port Read Time Port XRE Disable Time R/W Setup Time R/W Hold Time Port Enable Read Time 0 20 0 150 250 150 100 250 250 250
Parameter
Min
50 50
Max
Unit
nS nS
100 100 100 1000 800 500 250 100 1000 500 800
nS nS nS nS nS nS nS nS nS nS nS nS nS ns nS nS nS
34
X5114
Bi-directional Mode - Parallel Write Data to Port A tPEW
PEN (PB4 in) tPEWS
R/W (PB7 in)
tPEWH tPSU
Valid Port Data
Port A Pins (in)
tPH
tRDRF (interlocked mode) TDRE (PB6 out) (pulsed mode) tPWRF IRQA RDR (flag)
Empty Full
Bi-directional Mode - SPI Read Data From Port A
SCKa/SCKb SOa/SOb
D0 D7
SR Data tRDRE tRDRE
PAL Data
(interlocked mode) TDRE (PB6 out) (pulsed mode) IRQA RDR (flag)
Full
tRDRP
tPRRE
Empty
35
X5114
Bi-directional Mode - SPI Write Data to Port A
SCKa/SCKb SIa/SIb
D1 D0
Port A Data tPV Ports (Driven Outputs)
Old Port A Data New Port A Data
tXREF (interlocked mode) RDRF (PB5 out) (pulsed mode) IRQA XRE (flag)
Empty
tXREF
tXREP
tPWXF
Full
Bi-directional Mode - Parallel Read Data From Port A tPER PEN (PB4 in) R/W (PB7 in) tPEPR Port A Pins (out) Valid Port Data tXREE (interlocked mode) RDRF (PB5 out) (pulsed mode) IRQA Full tPRXE tPEPD
XRE (flag)
Empty
36
X5114
CSO/CSC TIMING Symbol
tCSOE tCSCE tCSOD tCSCD
Parameter
Chip Select Output Enable time Chip Select Cascade Enable time Chip Select Output Disable time Chip Select Cascade Disable time
Min
Max
200 200 100 100
Unit
nS nS nS nS
CSO Timing (Enable) CSa/CSb SCKa/SCKb SIa/SIb
A1 A0 C7 C6
Device Address tCSOE CSO
Device Command
CSC Timing (Enable) CSa/CSb SCKa/SCKb SIa/SIb
C1 C0 Don't Care Don't Care
NOP Instruction tCSCE CSC
CSO/CSC Timing (Disable) CSa/CSb tCSOD CSO tCSCD CSC
37
X5114
PACKAGING INFORMATION
44-PIN PLASTIC LEADED CHIP CARRIER PACKAGE TYPE J
0.695 (17.65) 0.685 (17.40) 0.655 (16.64) 0.650 (16.51) 0.500 (12.70) REF.
SEATING PLANE 0.004 LEAD CO - PLANARITY -- 0.020 (0.51) 0.110 (2.79) 0.100 (2.54) 0.180 (4.57) 0.165 (4.19) 0.156 (3.96) 0.145 (3.68)
PIN 1
0.695 (17.65) 0.685 (17.40) 0.655 (16.64) 0.650 (16.51) 0.500 (12.70)REF.
0.050 REF. (1.27)
0.021 (0.63) 0.013 (0.33) 0.032 (0.81) 0.026 (0.66) 0.630 (16.00) 0.590 (14.99)
0.011 (0.28) 0.009 (0.23) NOTES: 1. ALL DIMENSIONS IN INCHES (IN PARENTHESES IN MILLIMETERS) 2. DIMENSIONS WITH NO TOLERANCE FOR REFERENCE ONLY
3926 ILL F29.2
38
X5114
PACKAGING INFORMATION 48-LEAD THIN QUAD FLAT PACK (TQFP) PACKAGE TYPE L
He E
L1
D
Hd
GAGE PLANE 0.25 L
e
b
A2 70
DIM
C A1
MILLIMETERS MIN MAX 0.15 1.45 0.27 0.200
INCHES MIN 0.002 0.53 0.007 0.004 MAX 0.006 0.057 0.011 0.008
A1 A2 b c D E e Hd He L L1
NOTES: 1. GAGE PLANE DIMENSION IS IN MM. 2. LEAD COPLANARITY SHALL BE 0.10MM [0.004] MAXIMUM. 3. MOLD FLASH NOT INCLUDED IN DIMENSIONS
0.05 1.35 0.17 0.090
7.0 BSC 7.0 BSC 0.5 BSC 9.0 BSC 9.0 BSC 0.45 0.75
0.273 BSC 0.273 BSC 0.02 BSC 0.35 BSC 0.35 BSC 0.018 0.030
1.00 TYP
0.039 TYP
7052 FM 23
39
X5114
ORDERING INFORMATION
X5114 Device
X
X Temperature Range Blank = Commercial = 0C to +70C I = Industrial = -40C to +85C Package L = 48-Lead TQFP J = 44-Lead PLCC
LIMITED WARRANTY Devices sold by Xicor, Inc. are covered by the warranty and patent indemnification provisions appearing in its Terms of Sale only. Xicor, Inc. makes no warranty, express, statutory, implied, or by description regarding the information set forth herein or regarding the freedom of the described devices from patent infringement. Xicor, Inc. makes no warranty of merchantability or fitness for any purpose. Xicor, Inc. reserves the right to discontinue production and change specifications and prices at any time and without notice. Xicor, Inc. assumes no responsibility for the use of any circuitry other than circuitry embodied in a Xicor, Inc. product. No other circuits, patents, licenses are implied. U.S. PATENTS Xicor products are covered by one or more of the following U.S. Patents: 4,263,664; 4,274,012; 4,300,212; 4,314,265; 4,326,134; 4,393,481; 4,404,475; 4,450,402; 4,486,769; 4,488,060; 4,520,461; 4,533,846; 4,599,706; 4,617,652; 4,668,932; 4,752,912; 4,829, 482; 4,874, 967; 4,883, 976. Foreign patents and additional patents pending. LIFE RELATED POLICY In situations where semiconductor component failure may endanger life, system designers using this product should design the system with appropriate error detection and correction, redundancy and back-up features to prevent such an occurence. Xicor's products are not authorized for use in critical components in life support devices or systems. 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in a significant injury to the user. 2. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
40


▲Up To Search▲   

 
Price & Availability of X5114LI

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X